package com.cskaoyan.app.bean.vo.adminVo;

import lombok.Data;

/**
 * @author kiggy
 * @since 2022/12/28 23:27
 */
@Data
public class AdminBaseVo<T> {
    private Integer errno;
    private String errmsg;
    private T data;

    public AdminBaseVo<T> ok(T data){
        AdminBaseVo<T> adminBaseVo = new AdminBaseVo<>();
        adminBaseVo.setErrno(0);
        adminBaseVo.setErrmsg("成功");
        adminBaseVo.setData(data);
        return adminBaseVo;
    }
}
